﻿package kliment.display.draw.shape {
	import flash.geom.Point;
	import kliment.display.draw.DrawStyle;
	
	/**
	 * ...
	 * @author Kliment
	 */
	public class TriangleByCornerShape extends ShapeAbstract {
		
		public function TriangleByCornerShape(a:Point, b:Point, c:Point, drawStyle:DrawStyle = null) {
			super();
			_setStyles(graphics, drawStyle);
			graphics.moveTo(a.x, a.y);
			graphics.lineTo(b.x, b.y);
			graphics.lineTo(c.x, c.y);
			graphics.lineTo(a.x, a.y);
			graphics.endFill();
		}
		
	}
	
}